﻿
//------------------------------------------------------------------------------

using System;
using System.ComponentModel.DataAnnotations;

using System.Collections.Generic;
namespace Apps.Models.MIS
{

    public partial class MIS_Article_CategoryModel
    {
        [Display(Name = "ID")]
        [NotNullExpression]
        public override string Id { get; set; }

        [Required(ErrorMessage = "{0}必须是一个数字")]
        [Display(Name = "ID")]
        public override int? ChannelId { get; set; }

        [MaxWordsExpression(100)]
        [NotNullExpression]//不能为空
        [Display(Name = "标题")]
        public override string Name { get; set; }

        [MaxWordsExpression(100)]
        [Display(Name = "上级ID")]
        public override string ParentId { get; set; }

        [IsNumberExpression]//如果填写判断是否是数字
        [Display(Name = "排序号")]
        public override int? Sort { get; set; }

        [MaxWordsExpression(255)]
        [Display(Name = "图片")]
        public override string ImgUrl { get; set; }

        [MaxWordsExpression(8000)]
        [Display(Name = "内容")]
        public override string BodyContent { get; set; }

        [Display(Name = "创建时间")]
        public override DateTime? CreateTime { get; set; }

        public List<MIS_Article_CategoryModel> clildren { get; set; }

        public  string state { get; set; }


        [Display(Name = "状态")]
        public override bool Enable { get; set; }

    }
}

